﻿using Admin.Core.Common.BaseModel;
using Admin.Core.Model.Admin;
using FreeSql.DataAnnotations;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;

namespace Admin.Core.Model.Quality
{
    /// <summary>
    /// 校验报告记录
    /// </summary>
    [Table(Name = "ZL_CHECK_REPORT")]
    public class CheckReportEntity : EntityAdd, IEntitySoftDelete
    {

        /// <summary>
        /// 校验主键
        /// </summary>
        [Column(Name = "MACHINECHECKID")]
        public long MachineCheckId { get; set; }
        public MachineCheckEntity MachineCheck { get; set; }

        /// <summary>
        /// 校准时间
        /// </summary>
        [Column(Name = "CALTIME")]
        public DateTime? CalTime { get; set; }


        /// <summary>
        /// 校验文档路径
        /// </summary>
        [Column(Name = "FILEPATH")]//
        public string  FilePath { get; set; }


        /// <summary>
        /// 校验结果描述
        /// </summary>
        [Column(Name = "RESULT")]//
        public string Result { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [Column(Name = "REMARK")]//
        public string Remark { get; set; }


        /// <summary>
        /// 校验人
        /// </summary>
        [Column(Name = "CALUSERID")]//
        public long CalUserId { get; set; }
        public UserEntity CalUser { get; set; }

        /// <summary>
        /// 是否删除
        /// </summary>
        [Description("是否删除")]
        [Column(Name = "ISDELETED")]//
        public bool IsDeleted { get; set; } = false;


        /// <summary>
        /// 确认校准时间
        /// </summary>
        [Column(Name = "CONFIRMCALTIME")]
        public DateTime? ConfirmCalTime { get; set; }


        /// <summary>
        /// 状态  0 待确认  1 校验成功  2 校验失败
        /// </summary>
        [Column(Name = "STATUS")]//
        public int Status { get; set; }


    }
}
